<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
	    <title>含有复选的表单页面</title>
  </head>
<form action="example2_2_1a.jsp" method="post">
    姓名<input type="text" name="username"><br>
    选出你喜欢吃的水果：<br> 
    <input type="checkbox" name="checkbox1" value="apple">苹果
    <input type="checkbox" name="checkbox1" value="watermelon">西瓜
    <input type="checkbox" name="checkbox1" value="peach">桃子
    <input type="checkbox" name="checkbox1" value="grape">葡萄
    <br> <input type="submit"  value="提交">
</form>

</html>
